package com.example.adminframework.model.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 排序
 */
@ApiModel("排序")
public class SortBO {
    /**
     * 字段
     */
    @ApiModelProperty("字段")
    private String field;
    /**
     * 排序方式('asc'升序或者'desc'降序)
     */
    @ApiModelProperty("排序方式。支持{asc(升序),desc(降序)}")
    private String order;

    public SortBO() {
    }

    public SortBO(String field, String order) {
        this.field = field;
        this.order = order;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
//        this.field = SqlUtil.humpToLine(field);
        this.field = field;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    @Override
    public String toString() {
        return "SortBO{" +
                "field='" + field + '\'' +
                ", order='" + order + '\'' +
                '}';
    }
}
